<template>
  <!-- 环境监测管控右二 -->
  <div class="tableEqu">
    <el-table :data="tabledata">
      <el-table-column prop="type" label="类型"></el-table-column>
      <el-table-column
        prop="stations"
        label="监测点"
        width="80"
      ></el-table-column>
      <el-table-column
        prop="time"
        label="告警时间"
        width="80"
      ></el-table-column>
      <el-table-column prop="value" label="告警值" width="80"></el-table-column>
      <el-table-column label="操作" width="50">
        <template>
          <span
            class="operation"
            :style="`background-image:url(${tablebg})`"
          ></span>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    tabledata: {
      type: Array,
      required: false,
      default: "",
    },
    tablebg: {
      type: String,
      required: false,
      default: "",
    },
  },
  name: "eletable",
  data() {
    return {
      Array: [],
    };
  },
  methods: {},
  mounted() {},
};
</script>

<style  scoped>
.tableEqu >>> .el-table .el-table__body-wrapper tr:nth-child(even) {
  background: #003868 !important;
}
.tableEqu >>> .cell {
  font-size: 12px;
}
.tableEqu >>> .el-table__body-wrapper {
  height: 150px;
  overflow-y: auto;
}
.tableEqu >>> .has-gutter {
    background:transparent;
 
}
.tableEqu >>>.el-table th.el-table__cell>.cell{
    color: #0080ff ;
    font-weight: bold;
    font-family: ZZGFLQ;
}

.operation {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  background-size: 100% 100%;
}
</style>